package com.learn.sms.common.exception;

import lombok.Data;

/**
 * @author : Yu.Tan
 * @date : 2023/7/25 15:25
 * @desc : this class for 错误码对象
 **/
@Data
public class ErrorCode {

    /**
     * 错误码
     */
    private final Integer code;
    /**
     * 错误提示
     */
    private final String msg;

    public ErrorCode(Integer code, String message) {
        this.code = code;
        this.msg = message;
    }
}
